package com.amigo.online.provider.adv.service;

import java.util.List;

import com.amigo.online.common.param.result.AdvInfo;
import com.amigo.online.common.param.result.adv.ProvinceAndCity;

/**
 * @author Administrator
 */
public interface AdvService {
    /**
     * 获取对应类型广告
     *
     * @param city
     * @param lng
     * @param lat
     * @param sex
     * @param age
     * @param language
     * @param width
     * @param height
     * @param number
     * @param type
     * @return
     */
    public List<AdvInfo> getAdvList(String city, Double lng, Double lat, String sex, Long age,
                                    String language, Double width, Double height, int number, int type);


    public Object getAreaInfoByCountryId(Long countryId, String language);

    void recordlookInfo(List<AdvInfo> result, int type, Long age, String sex, String cityId, Double lng, Double lat);

    /**
     * 根据cityId获取城市名和对应的省的名字，column为制定的列(如name_pt或者name_cn)
     *
     * @param cityId
     * @param column
     * @return
     */
    ProvinceAndCity getProvinceAndCityByCityId(Long cityId, String column);
}
